

set(LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET_ARCH})

add_library(zlib_dynamic SHARED IMPORTED GLOBAL)
target_include_directories(zlib_dynamic INTERFACE ../include/zlib)
set_target_properties(zlib_dynamic PROPERTIES
    IMPORTED_LOCATION   ${LIB_PATH}/dynamic/zlib.lib
)
add_library(zlib_static STATIC IMPORTED GLOBAL)
target_include_directories(zlib_static INTERFACE ../include/zlib)
set_target_properties(zlib_static PROPERTIES
    IMPORTED_LOCATION  ${LIB_PATH}/static/zlib.lib
)
if(NOT DEFINED LIB_ZLIB)
    set(LIB_ZLIB zlib_static CACHE STRING zlib_static)
endif()

add_library(freetype_dynamic SHARED IMPORTED GLOBAL)
target_include_directories(freetype_dynamic INTERFACE ../include/freetype)
set_target_properties(freetype_dynamic PROPERTIES
    IMPORTED_LOCATION  ${LIB_PATH}/dynamic/freetype.lib
)
add_library(freetype_static STATIC IMPORTED GLOBAL)
target_include_directories(freetype_static INTERFACE ../include/freetype)
set_target_properties(freetype_static PROPERTIES
    IMPORTED_LOCATION  ${LIB_PATH}/static/freetype.lib
)
if(NOT DEFINED LIB_FREETYPE)
    set(LIB_FREETYPE freetype_static CACHE STRING freetype_static)
endif()

add_library(png_dynamic SHARED IMPORTED GLOBAL)
target_include_directories(png_dynamic INTERFACE ../include/libpng)
set_target_properties(png_dynamic PROPERTIES
    IMPORTED_LOCATION  ${LIB_PATH}/dynamic/libpng16.lib
)
add_library(png_static STATIC IMPORTED GLOBAL)
target_include_directories(png_static INTERFACE ../include/libpng)
set_target_properties(png_static PROPERTIES
    IMPORTED_LOCATION  ${LIB_PATH}/static/libpng16.lib
)
if(NOT DEFINED LIB_PNG)
    set(LIB_PNG png_static CACHE STRING png_static)
endif()


